'
<template>
  <div>
    <van-nav-bar
      left-arrow
      @click-left="$router.back()"
      class="box"
      title="品牌列表"
    />
    <div class="item" v-for="item in list" :key="item.id">
      <router-link :to="'/bddetail/' + item.id">
        <div style="margin-bottom: 3px">
          <van-image
            class="img"
            width="10rem"
            fit="contain"
            :src="item.app_list_pic_url"
          />
        </div>
        <div class="item1">
          <span>{{ item.name }} | {{ item.floor_price }}</span>
        </div>
      </router-link>
    </div>
  </div>
</template>

<script>
import { getList } from "@/api/zhouyu/home";
export default {
  name: "Brand",
  data() {
    return {
      list: [],
    };
  },
  created() {
    this.initList();
  },
  methods: {
    async initList() {
      const { data } = await getList();
      console.log(data);
      this.list = data.data.data;
      console.log(this.list);
    },
  },
};
</script>

<style lang="less" scoped>
/deep/.van-nav-bar__content {
  background-color: red;
}
/deep/.van-nav-bar__title {
  color: #fff;
}
/deep/.van-icon-arrow-left:before {
  color: #fff;
}
.item {
  position: relative;
}
.item1 {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 35px;
  text-align: center;
  font-weight: 700;
}
.img {
  padding-top: 0px;
}
</style>
'
